<?php
namespace App\Services\Message\Message;

use App\Models\Message\MessageContent;
use App\Services\Manage\ManageIndex;
/**
 * @Author: 蒋哲
 * @Date:   2017-05-27 16:25:06
 * @Last Modified by:   ws
 * @Last Modified time: 2018-06-12 
 */
class MessageContentLogic
{
     /*发送站内信*/
    public function addContent($data): array 
    {
        is_array($data['orther_info']) && ($data['orther_info'] = json_encode($data['orther_info']));
        $data['create_time'] = time();
        $data['update_time'] = time();
        unset($data['to_uid']);
        $res = MessageContent::insertGetId($data);
        return auto_return($res, '发送站内信成功', '发送站内信失败');
    }



}